package com.xianggu.designMode.decorator.demo03;

import java.util.HashSet;

/**
 * @author chengjy
 * @date 2025/3/19
 */
class Demo01 {
    public static void main(String[] args) {
        HistoryList<Integer> historyList = new HistoryList<>(new HashSet<>());
        historyList.add(1);
        historyList.add(2);
        historyList.add(3);
        historyList.add(4);
        historyList.add(5);
        historyList.add(6);
        historyList.add(7);
        historyList.add(8);
        historyList.add(9);
        historyList.add(10);

        historyList.remove(1);
        historyList.remove(2);
        historyList.remove(3);

        System.out.println(historyList);
    }
}
